﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity;
using Metro.Kashikoi.Service.Common.Entity;
using Metro.Kashikoi.ServiceContract.Security;

namespace Metro.Kashikoi.Service.Security.Entity
{
    class Context : ContextBase, IUnitOfWork
    {
        #region Constructor
        /// <summary>
        /// Initializes a new instance of the <see cref="Context"/> class.
        /// </summary>
        public Context()
            : base("Security") { }
        #endregion

        #region Properties
        /// <summary>
        /// Gets or sets the user.
        /// </summary>
        /// <value>
        /// The user.
        /// </value>
        public IDbSet<UserBase> User { get; set; }

        /// <summary>
        /// Gets or sets the user group.
        /// </summary>
        /// <value>
        /// The user group.
        /// </value>
        public IDbSet<UserGroup> UserGroup { get; set; }


        #endregion

    }
}
